package com.bitin.module.project.domain.entity;

import com.bitin.module.project.domain.enumeration.PaymentState;
import com.bitin.module.project.domain.enumeration.TransactionCategory;
import com.bitin.module.project.domain.enumeration.TransactionChannel;
import jakarta.persistence.Enumerated;
import jakarta.persistence.Id;

import java.math.BigDecimal;

import static jakarta.persistence.EnumType.STRING;

/**
 * @author Mr.Lu
 * @since 2024/8/26 13:51
 */
public class Payment {
    @Id
    private String id;
    private Long accountId;
    private String orderId;
    private BigDecimal amount;
    @Enumerated( STRING )
    private TransactionCategory category;
    @Enumerated( STRING )
    private TransactionChannel channel;
    private String channelSerialNumber;
    private Long operatorId;
    private String operatorName;
    private Long operationTime;
    private String operationSummary;
    private Long paymentTime;
    private String offlineVouchers;
    @Enumerated( STRING )
    private PaymentState state;
}
